<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts: lib/time.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">ESP8266ILI9341DisplayProject</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_97aefd0d527b934f1d99a682da8fe6a9.html">lib</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">time.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Common Linux/POSIX time functions.  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &quot;<a class="el" href="user__config_8h_source.html">user_config.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="fatfs_8h_source.html">fatfs.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="mathio_8h_source.html">printf/mathio.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="time_8h_source.html">time.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="timer_8h_source.html">timer.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="posix_8h_source.html">posix.h</a>&quot;</code><br />
</div>
<p><a href="time_8c_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ac7a571349cf5217b6261a01bf85a79ab"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="time_8c.html#ac7a571349cf5217b6261a01bf85a79ab">tm_wday_to_ascii</a> (int i)</td></tr>
<tr class="memdesc:ac7a571349cf5217b6261a01bf85a79ab"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get string Short name of day from day number.  <a href="#ac7a571349cf5217b6261a01bf85a79ab">More...</a><br /></td></tr>
<tr class="separator:ac7a571349cf5217b6261a01bf85a79ab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0dd83b6492eb8473cb55bb45d8fc6c0c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="time_8c.html#a0dd83b6492eb8473cb55bb45d8fc6c0c">tm_mon_to_ascii</a> (int i)</td></tr>
<tr class="memdesc:a0dd83b6492eb8473cb55bb45d8fc6c0c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get string Short name of Month from month number.  <a href="#a0dd83b6492eb8473cb55bb45d8fc6c0c">More...</a><br /></td></tr>
<tr class="separator:a0dd83b6492eb8473cb55bb45d8fc6c0c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7a6b834817c8071e5e31d3693102a2b0"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="time_8c.html#a7a6b834817c8071e5e31d3693102a2b0">IS_Leap</a> (int year)</td></tr>
<tr class="memdesc:a7a6b834817c8071e5e31d3693102a2b0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check if a year is a leap year.  <a href="#a7a6b834817c8071e5e31d3693102a2b0">More...</a><br /></td></tr>
<tr class="separator:a7a6b834817c8071e5e31d3693102a2b0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae735aeba371be4c38d738538bcbd8ff1"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="time_8c.html#ae735aeba371be4c38d738538bcbd8ff1">Leap_Days_Since_1900</a> (int year)</td></tr>
<tr class="memdesc:ae735aeba371be4c38d738538bcbd8ff1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Number of leap days since 1900 to the BEGINNING of the year.  <a href="#ae735aeba371be4c38d738538bcbd8ff1">More...</a><br /></td></tr>
<tr class="separator:ae735aeba371be4c38d738538bcbd8ff1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae0a1ae285cfe1e2fc598ac12f46ceaef"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="time_8c.html#ae0a1ae285cfe1e2fc598ac12f46ceaef">finddayofweek</a> (int year, int month, int day)</td></tr>
<tr class="memdesc:ae0a1ae285cfe1e2fc598ac12f46ceaef"><td class="mdescLeft">&#160;</td><td class="mdescRight">return day of week for givenn day, month, year  <a href="#ae0a1ae285cfe1e2fc598ac12f46ceaef">More...</a><br /></td></tr>
<tr class="separator:ae0a1ae285cfe1e2fc598ac12f46ceaef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad4f4473fe0527085b45e8c354faeee7b"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="time_8c.html#ad4f4473fe0527085b45e8c354faeee7b">Days_Per_Year</a> (int year)</td></tr>
<tr class="memdesc:ad4f4473fe0527085b45e8c354faeee7b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Find number of days in a given year.  <a href="#ad4f4473fe0527085b45e8c354faeee7b">More...</a><br /></td></tr>
<tr class="separator:ad4f4473fe0527085b45e8c354faeee7b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac8aa3e3bf89628eb458ec88350b8033b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="time_8c.html#ac8aa3e3bf89628eb458ec88350b8033b">Days_Per_Month</a> (int month, int year)</td></tr>
<tr class="memdesc:ac8aa3e3bf89628eb458ec88350b8033b"><td class="mdescLeft">&#160;</td><td class="mdescRight">days in a month  <a href="#ac8aa3e3bf89628eb458ec88350b8033b">More...</a><br /></td></tr>
<tr class="separator:ac8aa3e3bf89628eb458ec88350b8033b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a09b5af92607205b927df4dcc1f2baa53"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="time_8h.html#a3346b04b0420b32ccf6b706551b70762">time_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="time_8c.html#a09b5af92607205b927df4dcc1f2baa53">time_to_tm</a> (<a class="el" href="time_8h.html#a3346b04b0420b32ccf6b706551b70762">time_t</a> epoch, <a class="el" href="earth2wireframe_8c.html#a32f2e37ee053cf2ce8ca28d1f74630e5">int32_t</a> offset, <a class="el" href="time_8h.html#a2fea857c30e2c901566fcf45fac68ac5">tm_t</a> *t)</td></tr>
<tr class="memdesc:a09b5af92607205b927df4dcc1f2baa53"><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts epoch ( seconds from 1 Jan EPOCH_YEAR UTC), offset seconds, to UNIX tm *t.  <a href="#a09b5af92607205b927df4dcc1f2baa53">More...</a><br /></td></tr>
<tr class="separator:a09b5af92607205b927df4dcc1f2baa53"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8386ff819a39512ea00cfc78ce5a27d5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="time_8h.html#a3346b04b0420b32ccf6b706551b70762">time_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="time_8c.html#a8386ff819a39512ea00cfc78ce5a27d5">timegm</a> (<a class="el" href="time_8h.html#a2fea857c30e2c901566fcf45fac68ac5">tm_t</a> *t)</td></tr>
<tr class="memdesc:a8386ff819a39512ea00cfc78ce5a27d5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert tm_t structure as GMT time into GMT seconds since 1900. All calculactions are in GMT regardless of timezoe settings.  <a href="#a8386ff819a39512ea00cfc78ce5a27d5">More...</a><br /></td></tr>
<tr class="separator:a8386ff819a39512ea00cfc78ce5a27d5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7ffc52def0c7fbf70c50248e3f7d6a8a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="time_8c.html#a7ffc52def0c7fbf70c50248e3f7d6a8a">asctime_r</a> (<a class="el" href="time_8h.html#a2fea857c30e2c901566fcf45fac68ac5">tm_t</a> *t, char *buf)</td></tr>
<tr class="memdesc:a7ffc52def0c7fbf70c50248e3f7d6a8a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert tm_t *t structure into POSIX <a class="el" href="time_8c.html#a95735d85f13249a5b329308d27d1f3ee" title="Convert tm_t *t structure into POSIX asctime() ASCII string. ">asctime()</a> ASCII string *buf.  <a href="#a7ffc52def0c7fbf70c50248e3f7d6a8a">More...</a><br /></td></tr>
<tr class="separator:a7ffc52def0c7fbf70c50248e3f7d6a8a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a95735d85f13249a5b329308d27d1f3ee"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="time_8c.html#a95735d85f13249a5b329308d27d1f3ee">asctime</a> (<a class="el" href="time_8h.html#a2fea857c30e2c901566fcf45fac68ac5">tm_t</a> *t)</td></tr>
<tr class="memdesc:a95735d85f13249a5b329308d27d1f3ee"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert tm_t *t structure into POSIX <a class="el" href="time_8c.html#a95735d85f13249a5b329308d27d1f3ee" title="Convert tm_t *t structure into POSIX asctime() ASCII string. ">asctime()</a> ASCII string.  <a href="#a95735d85f13249a5b329308d27d1f3ee">More...</a><br /></td></tr>
<tr class="separator:a95735d85f13249a5b329308d27d1f3ee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1aab5ff5bdcacaf02c16153291db0ea3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="time_8c.html#a1aab5ff5bdcacaf02c16153291db0ea3">ctime_r</a> (<a class="el" href="time_8h.html#a3346b04b0420b32ccf6b706551b70762">time_t</a> *t, char *buf)</td></tr>
<tr class="memdesc:a1aab5ff5bdcacaf02c16153291db0ea3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert local time_t *t epoch time into POSIX <a class="el" href="time_8c.html#a95735d85f13249a5b329308d27d1f3ee" title="Convert tm_t *t structure into POSIX asctime() ASCII string. ">asctime()</a> ASCII string *buf.  <a href="#a1aab5ff5bdcacaf02c16153291db0ea3">More...</a><br /></td></tr>
<tr class="separator:a1aab5ff5bdcacaf02c16153291db0ea3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a77d6bba12950028852621634ffaf4835"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="time_8c.html#a77d6bba12950028852621634ffaf4835">ctime</a> (<a class="el" href="time_8h.html#a3346b04b0420b32ccf6b706551b70762">time_t</a> *tp)</td></tr>
<tr class="memdesc:a77d6bba12950028852621634ffaf4835"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert local time_t *t epoch time into POSIX <a class="el" href="time_8c.html#a95735d85f13249a5b329308d27d1f3ee" title="Convert tm_t *t structure into POSIX asctime() ASCII string. ">asctime()</a> string buf[].  <a href="#a77d6bba12950028852621634ffaf4835">More...</a><br /></td></tr>
<tr class="separator:a77d6bba12950028852621634ffaf4835"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acf34275ac6fb2f724205873402dc9f70"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="time_8c.html#acf34275ac6fb2f724205873402dc9f70">ctime_gm</a> (<a class="el" href="time_8h.html#a3346b04b0420b32ccf6b706551b70762">time_t</a> *tp)</td></tr>
<tr class="memdesc:acf34275ac6fb2f724205873402dc9f70"><td class="mdescLeft">&#160;</td><td class="mdescRight">GMT version of POSIX <a class="el" href="time_8c.html#a77d6bba12950028852621634ffaf4835" title="Convert local time_t *t epoch time into POSIX asctime() string buf[]. ">ctime()</a>.  <a href="#acf34275ac6fb2f724205873402dc9f70">More...</a><br /></td></tr>
<tr class="separator:acf34275ac6fb2f724205873402dc9f70"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af391cf18b3fab0e588c6c3f354b7ca18"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="time_8h.html#a2fea857c30e2c901566fcf45fac68ac5">tm_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="time_8c.html#af391cf18b3fab0e588c6c3f354b7ca18">gmtime_r</a> (<a class="el" href="time_8h.html#a3346b04b0420b32ccf6b706551b70762">time_t</a> *t, <a class="el" href="time_8h.html#a2fea857c30e2c901566fcf45fac68ac5">tm_t</a> *result)</td></tr>
<tr class="memdesc:af391cf18b3fab0e588c6c3f354b7ca18"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert epoch GMT time_t *tp into POSIX tm_t *result.  <a href="#af391cf18b3fab0e588c6c3f354b7ca18">More...</a><br /></td></tr>
<tr class="separator:af391cf18b3fab0e588c6c3f354b7ca18"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a10fe08d03c4c3da23d1e1c059f4cf3a5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="time_8h.html#a2fea857c30e2c901566fcf45fac68ac5">tm_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="time_8c.html#a10fe08d03c4c3da23d1e1c059f4cf3a5">gmtime</a> (<a class="el" href="time_8h.html#a3346b04b0420b32ccf6b706551b70762">time_t</a> *tp)</td></tr>
<tr class="memdesc:a10fe08d03c4c3da23d1e1c059f4cf3a5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert epoch GMT time_t *tp into POSIX static tm_t *t.  <a href="#a10fe08d03c4c3da23d1e1c059f4cf3a5">More...</a><br /></td></tr>
<tr class="separator:a10fe08d03c4c3da23d1e1c059f4cf3a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af05576742e2f8ad3924c02a6af70a86d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="time_8h.html#a2fea857c30e2c901566fcf45fac68ac5">tm_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="time_8c.html#af05576742e2f8ad3924c02a6af70a86d">localtime_r</a> (<a class="el" href="time_8h.html#a3346b04b0420b32ccf6b706551b70762">time_t</a> *t, <a class="el" href="time_8h.html#a2fea857c30e2c901566fcf45fac68ac5">tm_t</a> *result)</td></tr>
<tr class="memdesc:af05576742e2f8ad3924c02a6af70a86d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert POSIX epoch time_t *tp into POSIX tm_t *result expressed as local time using timezone and DST corrections.  <a href="#af05576742e2f8ad3924c02a6af70a86d">More...</a><br /></td></tr>
<tr class="separator:af05576742e2f8ad3924c02a6af70a86d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a08eb1818fa59b3e6e1f1470ca0888572"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="time_8h.html#a2fea857c30e2c901566fcf45fac68ac5">tm_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="time_8c.html#a08eb1818fa59b3e6e1f1470ca0888572">localtime</a> (<a class="el" href="time_8h.html#a3346b04b0420b32ccf6b706551b70762">time_t</a> *tp)</td></tr>
<tr class="memdesc:a08eb1818fa59b3e6e1f1470ca0888572"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert POSIX epoch time_t *tp into POSIX tm_t *result.  <a href="#a08eb1818fa59b3e6e1f1470ca0888572">More...</a><br /></td></tr>
<tr class="separator:a08eb1818fa59b3e6e1f1470ca0888572"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeafbe7f942ef85f85edbbe31e439372b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="time_8h.html#a3346b04b0420b32ccf6b706551b70762">time_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="time_8c.html#aeafbe7f942ef85f85edbbe31e439372b">mktime</a> (<a class="el" href="time_8h.html#a2fea857c30e2c901566fcf45fac68ac5">tm_t</a> *t)</td></tr>
<tr class="memdesc:aeafbe7f942ef85f85edbbe31e439372b"><td class="mdescLeft">&#160;</td><td class="mdescRight">convert tm_t structure to time_t local time epoch  <a href="#aeafbe7f942ef85f85edbbe31e439372b">More...</a><br /></td></tr>
<tr class="separator:aeafbe7f942ef85f85edbbe31e439372b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab5470ed361255861f6db7f5154587ea0"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="time_8h.html#a3346b04b0420b32ccf6b706551b70762">time_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="time_8c.html#ab5470ed361255861f6db7f5154587ea0">tm2epoch</a> (<a class="el" href="time_8h.html#a2fea857c30e2c901566fcf45fac68ac5">tm_t</a> *t)</td></tr>
<tr class="memdesc:ab5470ed361255861f6db7f5154587ea0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts tm_t structure as GMT time into GMT epoch since 1900.  <a href="#ab5470ed361255861f6db7f5154587ea0">More...</a><br /></td></tr>
<tr class="separator:ab5470ed361255861f6db7f5154587ea0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3b1394c042dadbb7086e4facb6c87186"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="time_8h.html#a3346b04b0420b32ccf6b706551b70762">time_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="time_8c.html#a3b1394c042dadbb7086e4facb6c87186">normalize</a> (<a class="el" href="time_8h.html#a2fea857c30e2c901566fcf45fac68ac5">tm_t</a> *t, int normalize_to_timezone)</td></tr>
<tr class="memdesc:a3b1394c042dadbb7086e4facb6c87186"><td class="mdescLeft">&#160;</td><td class="mdescRight">Normalize POSIX tm_t *t struct and convert to epoch time Note: does not deal with DST - by design.  <a href="#a3b1394c042dadbb7086e4facb6c87186">More...</a><br /></td></tr>
<tr class="separator:a3b1394c042dadbb7086e4facb6c87186"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac363b4a4a45a4431d3c3b56886f1bef1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="time_8c.html#ac363b4a4a45a4431d3c3b56886f1bef1">gettimezone</a> (<a class="el" href="time_8h.html#a63629b2492d6773f4d4948d6e60022a8">tz_t</a> *tz)</td></tr>
<tr class="memdesc:ac363b4a4a45a4431d3c3b56886f1bef1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get current timezone in struct timezone *tz - POSIX function.  <a href="#ac363b4a4a45a4431d3c3b56886f1bef1">More...</a><br /></td></tr>
<tr class="separator:ac363b4a4a45a4431d3c3b56886f1bef1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aba9a1e17f18817099c795d0559d747a8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="time_8c.html#aba9a1e17f18817099c795d0559d747a8">settimezone</a> (<a class="el" href="time_8h.html#a63629b2492d6773f4d4948d6e60022a8">tz_t</a> *tz)</td></tr>
<tr class="memdesc:aba9a1e17f18817099c795d0559d747a8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set current timezone with struct timezone *tz - POSIX function.  <a href="#aba9a1e17f18817099c795d0559d747a8">More...</a><br /></td></tr>
<tr class="separator:aba9a1e17f18817099c795d0559d747a8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a96a115b6a8104959a7340938f150a350"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="time_8c.html#a96a115b6a8104959a7340938f150a350">gettimeofday</a> (<a class="el" href="time_8h.html#a23f99094ae0798225e20ad40e48658bb">tv_t</a> *tv, <a class="el" href="time_8h.html#a63629b2492d6773f4d4948d6e60022a8">tz_t</a> *tz)</td></tr>
<tr class="memdesc:a96a115b6a8104959a7340938f150a350"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get current time struct timeval *tv and struct timezone *tz - POSIX function. We assume a GMT hardware clock.  <a href="#a96a115b6a8104959a7340938f150a350">More...</a><br /></td></tr>
<tr class="separator:a96a115b6a8104959a7340938f150a350"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a32b1cbd925752f0cd61d202bbe204a69"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="time_8h.html#a3346b04b0420b32ccf6b706551b70762">time_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="time_8c.html#a32b1cbd925752f0cd61d202bbe204a69">time</a> (<a class="el" href="time_8h.html#a3346b04b0420b32ccf6b706551b70762">time_t</a> *t)</td></tr>
<tr class="memdesc:a32b1cbd925752f0cd61d202bbe204a69"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return second from epoch - POSIX function.  <a href="#a32b1cbd925752f0cd61d202bbe204a69">More...</a><br /></td></tr>
<tr class="separator:a32b1cbd925752f0cd61d202bbe204a69"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeb8aa93cda8bc413e67e8633793edf7e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="time_8c.html#aeb8aa93cda8bc413e67e8633793edf7e">settimeofday</a> (<a class="el" href="time_8h.html#a23f99094ae0798225e20ad40e48658bb">tv_t</a> *tv, <a class="el" href="time_8h.html#a63629b2492d6773f4d4948d6e60022a8">tz_t</a> *tz)</td></tr>
<tr class="memdesc:aeb8aa93cda8bc413e67e8633793edf7e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set current time struct timeval *tv and struct timezone *tz - POSIX function. We assume a GMT hardware clock.  <a href="#aeb8aa93cda8bc413e67e8633793edf7e">More...</a><br /></td></tr>
<tr class="separator:aeb8aa93cda8bc413e67e8633793edf7e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a054fae207409ed1e0be1c30edaab9a7b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="time_8c.html#a054fae207409ed1e0be1c30edaab9a7b">clock_set</a> (<a class="el" href="send_8c.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> <a class="el" href="user__main_8c.html#ae112d79896ed83ac05e155da60e85523">seconds</a>, <a class="el" href="send_8c.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> us)</td></tr>
<tr class="memdesc:a054fae207409ed1e0be1c30edaab9a7b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set system clock with seconds and microseconds.  <a href="#a054fae207409ed1e0be1c30edaab9a7b">More...</a><br /></td></tr>
<tr class="separator:a054fae207409ed1e0be1c30edaab9a7b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7a02196096176d10235868e6dce48c4c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="time_8c.html#a7a02196096176d10235868e6dce48c4c">setdate</a> (void)</td></tr>
<tr class="memdesc:a7a02196096176d10235868e6dce48c4c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set date and time by prompting user.  <a href="#a7a02196096176d10235868e6dce48c4c">More...</a><br /></td></tr>
<tr class="separator:a7a02196096176d10235868e6dce48c4c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af39c674506657f4a32793388117be705"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="time_8c.html#af39c674506657f4a32793388117be705">setdate_r</a> (char *buf)</td></tr>
<tr class="memdesc:af39c674506657f4a32793388117be705"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set date and time from string in this format "YYYY MM DD HH:MM:SS".  <a href="#af39c674506657f4a32793388117be705">More...</a><br /></td></tr>
<tr class="separator:af39c674506657f4a32793388117be705"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abc775c1cfa2760ddccbfe11c8c0b6efa"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="time_8h.html#a3346b04b0420b32ccf6b706551b70762">time_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="time_8c.html#abc775c1cfa2760ddccbfe11c8c0b6efa">find_dst</a> (int <a class="el" href="time_8c.html#a5a388b2bb2a2a9914c7d68ed3d09f7e9">dst</a>, <a class="el" href="time_8h.html#a3346b04b0420b32ccf6b706551b70762">time_t</a> epoch, int year, int month, int weekno, int dayno, int hour)</td></tr>
<tr class="memdesc:abc775c1cfa2760ddccbfe11c8c0b6efa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Calculate GMT seconds of DST transition given LOCAL time start / end time and DST flag.  <a href="#abc775c1cfa2760ddccbfe11c8c0b6efa">More...</a><br /></td></tr>
<tr class="separator:abc775c1cfa2760ddccbfe11c8c0b6efa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2c066c436f8198cf22c1f2eef5d7b67a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="time_8c.html#a2c066c436f8198cf22c1f2eef5d7b67a">set_dst</a> (<a class="el" href="time_8h.html#a3346b04b0420b32ccf6b706551b70762">time_t</a> epoch)</td></tr>
<tr class="memdesc:a2c066c436f8198cf22c1f2eef5d7b67a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set DST start and end time for the given epoch year.  <a href="#a2c066c436f8198cf22c1f2eef5d7b67a">More...</a><br /></td></tr>
<tr class="separator:a2c066c436f8198cf22c1f2eef5d7b67a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a97ed766c965cf60b39b74a22077caf51"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="time_8c.html#a97ed766c965cf60b39b74a22077caf51">is_dst</a> (<a class="el" href="time_8h.html#a3346b04b0420b32ccf6b706551b70762">time_t</a> epoch)</td></tr>
<tr class="memdesc:a97ed766c965cf60b39b74a22077caf51"><td class="mdescLeft">&#160;</td><td class="mdescRight">Test GMT epoch time to see if DST applies in a local timezone.  <a href="#a97ed766c965cf60b39b74a22077caf51">More...</a><br /></td></tr>
<tr class="separator:a97ed766c965cf60b39b74a22077caf51"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4ccd9fbdf3321e8f5b7d4f13c1a7db71"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="time_8c.html#a4ccd9fbdf3321e8f5b7d4f13c1a7db71">print_dst</a> ()</td></tr>
<tr class="memdesc:a4ccd9fbdf3321e8f5b7d4f13c1a7db71"><td class="mdescLeft">&#160;</td><td class="mdescRight">print start/stop for DST as localtime for this year  <a href="#a4ccd9fbdf3321e8f5b7d4f13c1a7db71">More...</a><br /></td></tr>
<tr class="separator:a4ccd9fbdf3321e8f5b7d4f13c1a7db71"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0a0d74ae196751888b6c149dc8f1ed75"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="time_8c.html#a0a0d74ae196751888b6c149dc8f1ed75">print_dst_gmt</a> ()</td></tr>
<tr class="memdesc:a0a0d74ae196751888b6c149dc8f1ed75"><td class="mdescLeft">&#160;</td><td class="mdescRight">print start/stop for DST as GMT for this year  <a href="#a0a0d74ae196751888b6c149dc8f1ed75">More...</a><br /></td></tr>
<tr class="separator:a0a0d74ae196751888b6c149dc8f1ed75"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0be4566aa9ed3f590570de0787f2cc12"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="time_8c.html#a0be4566aa9ed3f590570de0787f2cc12">initialize_clock</a> (int minwest)</td></tr>
<tr class="memdesc:a0be4566aa9ed3f590570de0787f2cc12"><td class="mdescLeft">&#160;</td><td class="mdescRight">initialize system time - if we have an RTC use it  <a href="#a0be4566aa9ed3f590570de0787f2cc12">More...</a><br /></td></tr>
<tr class="separator:a0be4566aa9ed3f590570de0787f2cc12"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a45581e089f65467887592224ccb75612"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="time_8c.html#a45581e089f65467887592224ccb75612">display_clock</a> ()</td></tr>
<tr class="memdesc:a45581e089f65467887592224ccb75612"><td class="mdescLeft">&#160;</td><td class="mdescRight">Display system time and optionally RTC time.  <a href="#a45581e089f65467887592224ccb75612">More...</a><br /></td></tr>
<tr class="separator:a45581e089f65467887592224ccb75612"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:a335451dd774ecb4b696d501b4c1b6f30"><td class="memItemLeft" align="right" valign="top">volatile <a class="el" href="time_8h.html#a062a82a85c72b4a3020130efc37a00cf">ts_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="time_8c.html#a335451dd774ecb4b696d501b4c1b6f30">__clock</a></td></tr>
<tr class="memdesc:a335451dd774ecb4b696d501b4c1b6f30"><td class="mdescLeft">&#160;</td><td class="mdescRight">System Clock Time.  <a href="#a335451dd774ecb4b696d501b4c1b6f30">More...</a><br /></td></tr>
<tr class="separator:a335451dd774ecb4b696d501b4c1b6f30"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9ac29ed71adf6807175d24ab1fa622a7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="time_8h.html#a63629b2492d6773f4d4948d6e60022a8">tz_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="time_8c.html#a9ac29ed71adf6807175d24ab1fa622a7">__tzone</a></td></tr>
<tr class="memdesc:a9ac29ed71adf6807175d24ab1fa622a7"><td class="mdescLeft">&#160;</td><td class="mdescRight">System Time Zone.  <a href="#a9ac29ed71adf6807175d24ab1fa622a7">More...</a><br /></td></tr>
<tr class="separator:a9ac29ed71adf6807175d24ab1fa622a7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5a388b2bb2a2a9914c7d68ed3d09f7e9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structdst__t.html">dst_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="time_8c.html#a5a388b2bb2a2a9914c7d68ed3d09f7e9">dst</a></td></tr>
<tr class="memdesc:a5a388b2bb2a2a9914c7d68ed3d09f7e9"><td class="mdescLeft">&#160;</td><td class="mdescRight">DST start and stop in GMT epoch.  <a href="#a5a388b2bb2a2a9914c7d68ed3d09f7e9">More...</a><br /></td></tr>
<tr class="separator:a5a388b2bb2a2a9914c7d68ed3d09f7e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acab85c85e1497507b279edab985ac1e5"><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="send_8c.html#a273cf69d639a59973b6019625df33e30">uint16_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="time_8c.html#acab85c85e1497507b279edab985ac1e5">__days_sum</a> []</td></tr>
<tr class="memdesc:acab85c85e1497507b279edab985ac1e5"><td class="mdescLeft">&#160;</td><td class="mdescRight">accumulated days to the start of a month in a year.  <a href="#acab85c85e1497507b279edab985ac1e5">More...</a><br /></td></tr>
<tr class="separator:acab85c85e1497507b279edab985ac1e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a51f8059d5a58b35f401245c1f2cabc2d"><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="send_8c.html#a273cf69d639a59973b6019625df33e30">uint16_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="time_8c.html#a51f8059d5a58b35f401245c1f2cabc2d">__days</a> []</td></tr>
<tr class="memdesc:a51f8059d5a58b35f401245c1f2cabc2d"><td class="mdescLeft">&#160;</td><td class="mdescRight">days in each month.  <a href="#a51f8059d5a58b35f401245c1f2cabc2d">More...</a><br /></td></tr>
<tr class="separator:a51f8059d5a58b35f401245c1f2cabc2d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6403bf32bcba7c1ca0fe395d8b30e542"><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="time_8c.html#a6403bf32bcba7c1ca0fe395d8b30e542">__WDay</a> [] = { &quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;,&quot;BAD&quot;}</td></tr>
<tr class="memdesc:a6403bf32bcba7c1ca0fe395d8b30e542"><td class="mdescLeft">&#160;</td><td class="mdescRight">Short Name of each Day in a week.  <a href="#a6403bf32bcba7c1ca0fe395d8b30e542">More...</a><br /></td></tr>
<tr class="separator:a6403bf32bcba7c1ca0fe395d8b30e542"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1059a668b2b28621f4bce70f603555fa"><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="time_8c.html#a1059a668b2b28621f4bce70f603555fa">__Month</a> []</td></tr>
<tr class="memdesc:a1059a668b2b28621f4bce70f603555fa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Short Name or each Month in a year.  <a href="#a1059a668b2b28621f4bce70f603555fa">More...</a><br /></td></tr>
<tr class="separator:a1059a668b2b28621f4bce70f603555fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Common Linux/POSIX time functions. </p>
<dl class="section user"><dt>Copyright &copy; 2015 Mike Gore, GPL License</dt><dd></dd></dl>
<dl class="section user"><dt>You are free to use this code under the terms of GPL</dt><dd>please retain a copy of this notice in any code you use it in.</dd></dl>
<p>This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.</p>
<p>This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.</p>
<p>You should have received a copy of the GNU General Public License along with this program. If not, see <a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>. </p>

<p>Definition in file <a class="el" href="time_8c_source.html">time.c</a>.</p>
</div><h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a95735d85f13249a5b329308d27d1f3ee"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> char* asctime </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="time_8h.html#a2fea857c30e2c901566fcf45fac68ac5">tm_t</a> *&#160;</td>
          <td class="paramname"><em>t</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Convert tm_t *t structure into POSIX <a class="el" href="time_8c.html#a95735d85f13249a5b329308d27d1f3ee" title="Convert tm_t *t structure into POSIX asctime() ASCII string. ">asctime()</a> ASCII string. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">t</td><td>struct tm * time input.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>buf[] string pointer in POSIX <a class="el" href="time_8c.html#a95735d85f13249a5b329308d27d1f3ee" title="Convert tm_t *t structure into POSIX asctime() ASCII string. ">asctime()</a> format.<ul>
<li>Example output: "Thu Dec  8 21:45:05 EST 2011". </li>
</ul>
</dd></dl>
<dl class="section warning"><dt>Warning</dt><dd>result is overwritten on each call. </dd></dl>

<p>Definition at line <a class="el" href="time_8c_source.html#l00394">394</a> of file <a class="el" href="time_8c_source.html">time.c</a>.</p>

<p>Referenced by <a class="el" href="time_8c_source.html#l01227">display_clock()</a>, <a class="el" href="cordic2c_8c_source.html#l00128">get_date()</a>, and <a class="el" href="user__main_8c_source.html#l00176">ntp_setup()</a>.</p>

</div>
</div>
<a class="anchor" id="a7ffc52def0c7fbf70c50248e3f7d6a8a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> char* asctime_r </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="time_8h.html#a2fea857c30e2c901566fcf45fac68ac5">tm_t</a> *&#160;</td>
          <td class="paramname"><em>t</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>buf</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Convert tm_t *t structure into POSIX <a class="el" href="time_8c.html#a95735d85f13249a5b329308d27d1f3ee" title="Convert tm_t *t structure into POSIX asctime() ASCII string. ">asctime()</a> ASCII string *buf. </p>
<dl class="todo"><dt><b><a class="el" href="todo.html#_todo000001">Todo:</a></b></dt><dd>implement strftime() and strptime() </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">t</td><td>tm_t structure pointer. </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">buf</td><td>user buffer for POSIX <a class="el" href="time_8c.html#a95735d85f13249a5b329308d27d1f3ee" title="Convert tm_t *t structure into POSIX asctime() ASCII string. ">asctime()</a> string result.<ul>
<li>Example output: "Thu Dec  8 21:45:05 EST 2011".</li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>buf string pointer. </dd></dl>

<p>Definition at line <a class="el" href="time_8c_source.html#l00367">367</a> of file <a class="el" href="time_8c_source.html">time.c</a>.</p>

<p>Referenced by <a class="el" href="time_8c_source.html#l00394">asctime()</a>, <a class="el" href="time_8c_source.html#l00424">ctime()</a>, <a class="el" href="time_8c_source.html#l00441">ctime_gm()</a>, <a class="el" href="time_8c_source.html#l00410">ctime_r()</a>, and <a class="el" href="timetests_8c_source.html#l00099">timetests()</a>.</p>

</div>
</div>
<a class="anchor" id="a054fae207409ed1e0be1c30edaab9a7b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> void clock_set </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="send_8c.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a>&#160;</td>
          <td class="paramname"><em>seconds</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="send_8c.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a>&#160;</td>
          <td class="paramname"><em>us</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set system clock with seconds and microseconds. </p>
<ul>
<li>Note: Alternate clock functions. <dl class="section return"><dt>Returns</dt><dd>void. </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="timer_8c.html#a4ebca9883466f2cc6fea0547e0e64e79" title="Set system clock using seconds and nonoseconds - POSIX function. ">clock_settime()</a>. </dd></dl>
</li>
</ul>

<p>Definition at line <a class="el" href="time_8c_source.html#l00882">882</a> of file <a class="el" href="time_8c_source.html">time.c</a>.</p>

</div>
</div>
<a class="anchor" id="a77d6bba12950028852621634ffaf4835"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> char* ctime </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="time_8h.html#a3346b04b0420b32ccf6b706551b70762">time_t</a> *&#160;</td>
          <td class="paramname"><em>tp</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Convert local time_t *t epoch time into POSIX <a class="el" href="time_8c.html#a95735d85f13249a5b329308d27d1f3ee" title="Convert tm_t *t structure into POSIX asctime() ASCII string. ">asctime()</a> string buf[]. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">tp</td><td>time_t * time input.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>buf[].<ul>
<li>Example: "Thu Dec  8 21:45:05 EST 2011". </li>
</ul>
</dd></dl>

<p>Definition at line <a class="el" href="time_8c_source.html#l00424">424</a> of file <a class="el" href="time_8c_source.html">time.c</a>.</p>

<p>Referenced by <a class="el" href="user__main_8c_source.html#l00176">ntp_setup()</a>, <a class="el" href="time_8c_source.html#l01158">print_dst()</a>, <a class="el" href="user__main_8c_source.html#l00348">user_loop()</a>, and <a class="el" href="user__main_8c_source.html#l00631">user_tests()</a>.</p>

</div>
</div>
<a class="anchor" id="acf34275ac6fb2f724205873402dc9f70"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> char* ctime_gm </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="time_8h.html#a3346b04b0420b32ccf6b706551b70762">time_t</a> *&#160;</td>
          <td class="paramname"><em>tp</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>GMT version of POSIX <a class="el" href="time_8c.html#a77d6bba12950028852621634ffaf4835" title="Convert local time_t *t epoch time into POSIX asctime() string buf[]. ">ctime()</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">tp</td><td>time_t * time input.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>buf[].<ul>
<li>Example: "Thu Dec  8 21:45:05 EST 2011". </li>
</ul>
</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="time_8c.html#a77d6bba12950028852621634ffaf4835" title="Convert local time_t *t epoch time into POSIX asctime() string buf[]. ">ctime()</a> </dd></dl>
<dl class="section warning"><dt>Warning</dt><dd>result is overwritten on each call. </dd></dl>

<p>Definition at line <a class="el" href="time_8c_source.html#l00441">441</a> of file <a class="el" href="time_8c_source.html">time.c</a>.</p>

<p>Referenced by <a class="el" href="posix_8c_source.html#l01323">mctime()</a>, <a class="el" href="user__main_8c_source.html#l00176">ntp_setup()</a>, and <a class="el" href="time_8c_source.html#l01166">print_dst_gmt()</a>.</p>

</div>
</div>
<a class="anchor" id="a1aab5ff5bdcacaf02c16153291db0ea3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> char* ctime_r </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="time_8h.html#a3346b04b0420b32ccf6b706551b70762">time_t</a> *&#160;</td>
          <td class="paramname"><em>t</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>buf</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Convert local time_t *t epoch time into POSIX <a class="el" href="time_8c.html#a95735d85f13249a5b329308d27d1f3ee" title="Convert tm_t *t structure into POSIX asctime() ASCII string. ">asctime()</a> ASCII string *buf. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">t</td><td>time_t * time input. </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">buf</td><td>string output.<ul>
<li>Example output: "Thu Dec  8 21:45:05 EST 2011"</li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>buf string pointer. </dd></dl>

<p>Definition at line <a class="el" href="time_8c_source.html#l00410">410</a> of file <a class="el" href="time_8c_source.html">time.c</a>.</p>

</div>
</div>
<a class="anchor" id="ac8aa3e3bf89628eb458ec88350b8033b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int Days_Per_Month </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>month</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>year</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>days in a month </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">month;</td><td>month of year </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">year;</td><td>year</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>days in month including yeapyears </dd></dl>

<p>Definition at line <a class="el" href="time_8c_source.html#l00223">223</a> of file <a class="el" href="time_8c_source.html">time.c</a>.</p>

<p>Referenced by <a class="el" href="time_8c_source.html#l00654">normalize()</a>, and <a class="el" href="time_8c_source.html#l00552">tm2epoch()</a>.</p>

</div>
</div>
<a class="anchor" id="ad4f4473fe0527085b45e8c354faeee7b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int Days_Per_Year </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>year</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Find number of days in a given year. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">year</td><td>valid over 1900..2199.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section warning"><dt>Warning</dt><dd>No limit checking</dd></dl>
<dl class="section return"><dt>Returns</dt><dd>days in a given year.</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="time_8c.html#a09b5af92607205b927df4dcc1f2baa53" title="Converts epoch ( seconds from 1 Jan EPOCH_YEAR UTC), offset seconds, to UNIX tm *t. ">time_to_tm()</a> </dd>
<dd>
<a class="el" href="time_8c.html#acf34275ac6fb2f724205873402dc9f70" title="GMT version of POSIX ctime(). ">ctime_gm()</a> </dd>
<dd>
<a class="el" href="time_8c.html#af391cf18b3fab0e588c6c3f354b7ca18" title="Convert epoch GMT time_t *tp into POSIX tm_t *result. ">gmtime_r()</a> </dd>
<dd>
<a class="el" href="time_8c.html#af05576742e2f8ad3924c02a6af70a86d" title="Convert POSIX epoch time_t *tp into POSIX tm_t *result expressed as local time using timezone and DST...">localtime_r()</a> </dd></dl>

<p>Definition at line <a class="el" href="time_8c_source.html#l00211">211</a> of file <a class="el" href="time_8c_source.html">time.c</a>.</p>

<p>Referenced by <a class="el" href="time_8c_source.html#l00262">time_to_tm()</a>.</p>

</div>
</div>
<a class="anchor" id="a45581e089f65467887592224ccb75612"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> void display_clock </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Display system time and optionally RTC time. </p>
<dl class="section return"><dt>Returns</dt><dd>void </dd></dl>
<dl class="section see"><dt>See also</dt><dd>: <a class="el" href="rtc_8h.html#ab6c620f2f0bcbe90b65ecc723c03b645" title="Read DS1307 RTC into POSIX struct tm * structure. ">rtc_read</a> </dd>
<dd>
: <a class="el" href="time_8c.html#a8386ff819a39512ea00cfc78ce5a27d5" title="Convert tm_t structure as GMT time into GMT seconds since 1900. All calculactions are in GMT regardle...">timegm()</a> </dd>
<dd>
: ascitime() </dd></dl>

<p>Definition at line <a class="el" href="time_8c_source.html#l01227">1227</a> of file <a class="el" href="time_8c_source.html">time.c</a>.</p>

<p>Referenced by <a class="el" href="user__main_8c_source.html#l00631">user_tests()</a>.</p>

</div>
</div>
<a class="anchor" id="abc775c1cfa2760ddccbfe11c8c0b6efa"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="time_8h.html#a3346b04b0420b32ccf6b706551b70762">time_t</a> find_dst </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="time_8h.html#a3346b04b0420b32ccf6b706551b70762">time_t</a>&#160;</td>
          <td class="paramname"><em>epoch</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>year</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>month</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>weekno</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>dayno</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>hour</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Calculate GMT seconds of DST transition given LOCAL time start / end time and DST flag. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">dst</td><td>0 .. 1 DST needs to be applied to the arguments for DST caluclulations </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">epoch</td><td>0 | epoch if non-zero - UTC epoch time used to obtain year of DST calculations </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">year</td><td>0 | year if non-zero - UTC year of DST calcululation, if year and epoch are used - ignore epoch </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">month</td><td>0 .. 11, local time month DST transition </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">weekno</td><td>1 .. 4 localtime dayno count in this month </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">dayno</td><td>0 .. 6, localtime day of DST transition, 0 = Sunday </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">hour</td><td>0 .. 23 local time hour of DST transition result is in epoch GMT seconds Example: Eastern Time and Daylight Savings time time_t epoch,start,end; tv_t tv; tv_t tz; gettimeofday(&amp;tv, &amp;tz); epoch = tv.tv_sec; // DST start for this year, 2nd Sunday of Mar at 2:00am EST start = find_dst(0, epoch, 0,  3, 2, 0, 2); // DST start on 2016, 2nd Sunday of Mar at 2:00am EST start = find_dst(0, 0, 2016,  3, 2, 0, 2); // DST ends on for this year, 1st Sunday of Nov at 2:00am DST end = find_dst(1, epoch, 0, 11, 1, 0, 2); // DST ends on 2016, 1st Sunday of Nov at 2:00am DST end = find_dst(1, 0, 2016, 11, 1, 0, 2); </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="time_8c_source.html#l01038">1038</a> of file <a class="el" href="time_8c_source.html">time.c</a>.</p>

<p>Referenced by <a class="el" href="time_8c_source.html#l01113">set_dst()</a>.</p>

</div>
</div>
<a class="anchor" id="ae0a1ae285cfe1e2fc598ac12f46ceaef"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int finddayofweek </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>year</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>month</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>day</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>return day of week for givenn day, month, year </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">year</td><td>year such as 2016 </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">month</td><td>month 0 .. 11 </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">day</td><td>day 1 .. 28|29|30|31 result is day of week 0 .. 6, 0 = Sunday </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="time_8c_source.html#l00180">180</a> of file <a class="el" href="time_8c_source.html">time.c</a>.</p>

</div>
</div>
<a class="anchor" id="a96a115b6a8104959a7340938f150a350"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int gettimeofday </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="time_8h.html#a23f99094ae0798225e20ad40e48658bb">tv_t</a> *&#160;</td>
          <td class="paramname"><em>tv</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="time_8h.html#a63629b2492d6773f4d4948d6e60022a8">tz_t</a> *&#160;</td>
          <td class="paramname"><em>tz</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get current time struct timeval *tv and struct timezone *tz - POSIX function. We assume a GMT hardware clock. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">tv</td><td>time. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">tz</td><td>timezone.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 </dd></dl>

<p>Definition at line <a class="el" href="time_8c_source.html#l00822">822</a> of file <a class="el" href="time_8c_source.html">time.c</a>.</p>

<p>Referenced by <a class="el" href="time_8c_source.html#l01038">find_dst()</a>, <a class="el" href="time_8c_source.html#l01113">set_dst()</a>, and <a class="el" href="timetests_8c_source.html#l00099">timetests()</a>.</p>

</div>
</div>
<a class="anchor" id="ac363b4a4a45a4431d3c3b56886f1bef1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int gettimezone </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="time_8h.html#a63629b2492d6773f4d4948d6e60022a8">tz_t</a> *&#160;</td>
          <td class="paramname"><em>tz</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get current timezone in struct timezone *tz - POSIX function. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[out]</td><td class="paramname">tz</td><td>timezone result.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 </dd></dl>

<p>Definition at line <a class="el" href="time_8c_source.html#l00792">792</a> of file <a class="el" href="time_8c_source.html">time.c</a>.</p>

<p>Referenced by <a class="el" href="time_8c_source.html#l00822">gettimeofday()</a>, <a class="el" href="time_8c_source.html#l00499">localtime_r()</a>, and <a class="el" href="time_8c_source.html#l00654">normalize()</a>.</p>

</div>
</div>
<a class="anchor" id="a10fe08d03c4c3da23d1e1c059f4cf3a5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="time_8h.html#a2fea857c30e2c901566fcf45fac68ac5">tm_t</a>* gmtime </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="time_8h.html#a3346b04b0420b32ccf6b706551b70762">time_t</a> *&#160;</td>
          <td class="paramname"><em>tp</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Convert epoch GMT time_t *tp into POSIX static tm_t *t. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">tp</td><td>time_t * time input.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>tm_t t. </dd></dl>
<dl class="section warning"><dt>Warning</dt><dd>result is overwritten on each call. </dd></dl>

<p>Definition at line <a class="el" href="time_8c_source.html#l00471">471</a> of file <a class="el" href="time_8c_source.html">time.c</a>.</p>

<p>Referenced by <a class="el" href="time_8c_source.html#l01227">display_clock()</a>, <a class="el" href="user__main_8c_source.html#l00176">ntp_setup()</a>, <a class="el" href="rtc_8c_source.html#l00121">rtc_init()</a>, and <a class="el" href="posix_8c_source.html#l02252">unix_time_to_fat()</a>.</p>

</div>
</div>
<a class="anchor" id="af391cf18b3fab0e588c6c3f354b7ca18"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="time_8h.html#a2fea857c30e2c901566fcf45fac68ac5">tm_t</a>* gmtime_r </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="time_8h.html#a3346b04b0420b32ccf6b706551b70762">time_t</a> *&#160;</td>
          <td class="paramname"><em>t</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="time_8h.html#a2fea857c30e2c901566fcf45fac68ac5">tm_t</a> *&#160;</td>
          <td class="paramname"><em>result</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Convert epoch GMT time_t *tp into POSIX tm_t *result. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">tp</td><td>time_t * time input. </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">result</td><td>tm_t *result.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>tm_t *result. </dd></dl>

<p>Definition at line <a class="el" href="time_8c_source.html#l00456">456</a> of file <a class="el" href="time_8c_source.html">time.c</a>.</p>

<p>Referenced by <a class="el" href="time_8c_source.html#l00441">ctime_gm()</a>, and <a class="el" href="time_8c_source.html#l00471">gmtime()</a>.</p>

</div>
</div>
<a class="anchor" id="a0be4566aa9ed3f590570de0787f2cc12"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> void initialize_clock </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>minwest</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>initialize system time - if we have an RTC use it </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">minwest</td><td>your time zone as minute west </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>void </dd></dl>
<dl class="section see"><dt>See also</dt><dd>: <a class="el" href="timer_8c.html#a4ebca9883466f2cc6fea0547e0e64e79" title="Set system clock using seconds and nonoseconds - POSIX function. ">clock_settime()</a> </dd></dl>

<p>Definition at line <a class="el" href="time_8c_source.html#l01178">1178</a> of file <a class="el" href="time_8c_source.html">time.c</a>.</p>

<p>Referenced by <a class="el" href="user__main_8c_source.html#l00971">setup()</a>.</p>

</div>
</div>
<a class="anchor" id="a97ed766c965cf60b39b74a22077caf51"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int is_dst </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="time_8h.html#a3346b04b0420b32ccf6b706551b70762">time_t</a>&#160;</td>
          <td class="paramname"><em>epoch</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Test GMT epoch time to see if DST applies in a local timezone. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">epoch</td><td>seconds in GMT  <a class="el" href="time_8c.html#a3b1394c042dadbb7086e4facb6c87186" title="Normalize POSIX tm_t *t struct and convert to epoch time Note: does not deal with DST - by design...">normalize()</a> return 1 if yes, 0 if not </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="time_8c_source.html#l01147">1147</a> of file <a class="el" href="time_8c_source.html">time.c</a>.</p>

<p>Referenced by <a class="el" href="time_8c_source.html#l00499">localtime_r()</a>, and <a class="el" href="time_8c_source.html#l00654">normalize()</a>.</p>

</div>
</div>
<a class="anchor" id="a7a6b834817c8071e5e31d3693102a2b0"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int IS_Leap </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>year</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Check if a year is a leap year. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">year</td><td>valid over 1900..2199.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section warning"><dt>Warning</dt><dd>: No limit checking.</dd></dl>
<dl class="section return"><dt>Returns</dt><dd>1 (leap year), 0 (not a leap year( </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="time_8c.html#a09b5af92607205b927df4dcc1f2baa53" title="Converts epoch ( seconds from 1 Jan EPOCH_YEAR UTC), offset seconds, to UNIX tm *t. ">time_to_tm()</a> </dd>
<dd>
<a class="el" href="time_8c.html#acf34275ac6fb2f724205873402dc9f70" title="GMT version of POSIX ctime(). ">ctime_gm()</a> </dd>
<dd>
<a class="el" href="time_8c.html#af391cf18b3fab0e588c6c3f354b7ca18" title="Convert epoch GMT time_t *tp into POSIX tm_t *result. ">gmtime_r()</a> </dd>
<dd>
<a class="el" href="time_8c.html#af05576742e2f8ad3924c02a6af70a86d" title="Convert POSIX epoch time_t *tp into POSIX tm_t *result expressed as local time using timezone and DST...">localtime_r()</a> </dd></dl>

<p>Definition at line <a class="el" href="time_8c_source.html#l00135">135</a> of file <a class="el" href="time_8c_source.html">time.c</a>.</p>

<p>Referenced by <a class="el" href="time_8c_source.html#l00223">Days_Per_Month()</a>, <a class="el" href="time_8c_source.html#l00211">Days_Per_Year()</a>, <a class="el" href="time_8c_source.html#l00262">time_to_tm()</a>, and <a class="el" href="time_8c_source.html#l00552">tm2epoch()</a>.</p>

</div>
</div>
<a class="anchor" id="ae735aeba371be4c38d738538bcbd8ff1"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int Leap_Days_Since_1900 </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>year</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Number of leap days since 1900 to the BEGINNING of the year. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">year</td><td>valid over 1900..2199.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section warning"><dt>Warning</dt><dd>No limit checking</dd></dl>
<dl class="section return"><dt>Returns</dt><dd>days.</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="time_8c.html#a09b5af92607205b927df4dcc1f2baa53" title="Converts epoch ( seconds from 1 Jan EPOCH_YEAR UTC), offset seconds, to UNIX tm *t. ">time_to_tm()</a> </dd>
<dd>
<a class="el" href="time_8c.html#acf34275ac6fb2f724205873402dc9f70" title="GMT version of POSIX ctime(). ">ctime_gm()</a> </dd>
<dd>
<a class="el" href="time_8c.html#af391cf18b3fab0e588c6c3f354b7ca18" title="Convert epoch GMT time_t *tp into POSIX tm_t *result. ">gmtime_r()</a> </dd>
<dd>
<a class="el" href="time_8c.html#af05576742e2f8ad3924c02a6af70a86d" title="Convert POSIX epoch time_t *tp into POSIX tm_t *result expressed as local time using timezone and DST...">localtime_r()</a> </dd></dl>

<p>Definition at line <a class="el" href="time_8c_source.html#l00156">156</a> of file <a class="el" href="time_8c_source.html">time.c</a>.</p>

<p>Referenced by <a class="el" href="time_8c_source.html#l00552">tm2epoch()</a>.</p>

</div>
</div>
<a class="anchor" id="a08eb1818fa59b3e6e1f1470ca0888572"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="time_8h.html#a2fea857c30e2c901566fcf45fac68ac5">tm_t</a>* localtime </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="time_8h.html#a3346b04b0420b32ccf6b706551b70762">time_t</a> *&#160;</td>
          <td class="paramname"><em>tp</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Convert POSIX epoch time_t *tp into POSIX tm_t *result. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">tp</td><td>time_t * epoch time input.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>struct tm result. </dd></dl>
<dl class="section warning"><dt>Warning</dt><dd>result is overwritten on each call. </dd></dl>

<p>Definition at line <a class="el" href="time_8c_source.html#l00522">522</a> of file <a class="el" href="time_8c_source.html">time.c</a>.</p>

<p>Referenced by <a class="el" href="time_8c_source.html#l00424">ctime()</a>, <a class="el" href="time_8c_source.html#l00410">ctime_r()</a>, <a class="el" href="cordic2c_8c_source.html#l00128">get_date()</a>, and <a class="el" href="fatfs__sup_8c_source.html#l00130">get_fattime()</a>.</p>

</div>
</div>
<a class="anchor" id="af05576742e2f8ad3924c02a6af70a86d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="time_8h.html#a2fea857c30e2c901566fcf45fac68ac5">tm_t</a>* localtime_r </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="time_8h.html#a3346b04b0420b32ccf6b706551b70762">time_t</a> *&#160;</td>
          <td class="paramname"><em>t</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="time_8h.html#a2fea857c30e2c901566fcf45fac68ac5">tm_t</a> *&#160;</td>
          <td class="paramname"><em>result</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Convert POSIX epoch time_t *tp into POSIX tm_t *result expressed as local time using timezone and DST corrections. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">t</td><td>time_t * epoch time input. </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">result</td><td>tm_t *result.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>result. </dd></dl>

<p>Definition at line <a class="el" href="time_8c_source.html#l00499">499</a> of file <a class="el" href="time_8c_source.html">time.c</a>.</p>

<p>Referenced by <a class="el" href="time_8c_source.html#l00522">localtime()</a>, and <a class="el" href="timetests_8c_source.html#l00099">timetests()</a>.</p>

</div>
</div>
<a class="anchor" id="aeafbe7f942ef85f85edbbe31e439372b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="time_8h.html#a3346b04b0420b32ccf6b706551b70762">time_t</a> mktime </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="time_8h.html#a2fea857c30e2c901566fcf45fac68ac5">tm_t</a> *&#160;</td>
          <td class="paramname"><em>t</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>convert tm_t structure to time_t local time epoch </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">t</td><td>tm_t time input.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>local epoch or -1 on failure out of range </dd></dl>

<p>Definition at line <a class="el" href="time_8c_source.html#l00534">534</a> of file <a class="el" href="time_8c_source.html">time.c</a>.</p>

<p>Referenced by <a class="el" href="user__main_8c_source.html#l00176">ntp_setup()</a>, and <a class="el" href="timetests_8c_source.html#l00099">timetests()</a>.</p>

</div>
</div>
<a class="anchor" id="a3b1394c042dadbb7086e4facb6c87186"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="time_8h.html#a3346b04b0420b32ccf6b706551b70762">time_t</a> normalize </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="time_8h.html#a2fea857c30e2c901566fcf45fac68ac5">tm_t</a> *&#160;</td>
          <td class="paramname"><em>t</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>normalize_to_timezone</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Normalize POSIX tm_t *t struct and convert to epoch time Note: does not deal with DST - by design. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">t</td><td>tm_t time input. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">normalize_to_timezone</td><td>nonzero = adjust to local timezone and DST</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>epoch since 1900 on sucess, -1 on failure out of range </dd></dl>

<p>Definition at line <a class="el" href="time_8c_source.html#l00654">654</a> of file <a class="el" href="time_8c_source.html">time.c</a>.</p>

<p>Referenced by <a class="el" href="time_8c_source.html#l00367">asctime_r()</a>, <a class="el" href="time_8c_source.html#l00534">mktime()</a>, and <a class="el" href="time_8c_source.html#l00347">timegm()</a>.</p>

</div>
</div>
<a class="anchor" id="a4ccd9fbdf3321e8f5b7d4f13c1a7db71"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> void print_dst </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>print start/stop for DST as localtime for this year </p>

<p>Definition at line <a class="el" href="time_8c_source.html#l01158">1158</a> of file <a class="el" href="time_8c_source.html">time.c</a>.</p>

<p>Referenced by <a class="el" href="user__main_8c_source.html#l00176">ntp_setup()</a>.</p>

</div>
</div>
<a class="anchor" id="a0a0d74ae196751888b6c149dc8f1ed75"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> void print_dst_gmt </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>print start/stop for DST as GMT for this year </p>

<p>Definition at line <a class="el" href="time_8c_source.html#l01166">1166</a> of file <a class="el" href="time_8c_source.html">time.c</a>.</p>

<p>Referenced by <a class="el" href="user__main_8c_source.html#l00176">ntp_setup()</a>.</p>

</div>
</div>
<a class="anchor" id="a2c066c436f8198cf22c1f2eef5d7b67a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> void set_dst </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="time_8h.html#a3346b04b0420b32ccf6b706551b70762">time_t</a>&#160;</td>
          <td class="paramname"><em>epoch</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set DST start and end time for the given epoch year. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">0</td><td>- or epoch seconds in GMT used to determin the year to aply DST in If 0 we get local GMT epoch time in seconds </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="time_8c_source.html#l01113">1113</a> of file <a class="el" href="time_8c_source.html">time.c</a>.</p>

<p>Referenced by <a class="el" href="time_8c_source.html#l01147">is_dst()</a>, and <a class="el" href="user__main_8c_source.html#l00176">ntp_setup()</a>.</p>

</div>
</div>
<a class="anchor" id="a7a02196096176d10235868e6dce48c4c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int setdate </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set date and time by prompting user. </p>
<ul>
<li>Prompt use for Date Time input with "YYYY MM DD HH:MM:SS&gt;"</li>
<li>Input format is: "YYYY MM DD HH:MM:SS"</li>
</ul>
<dl class="section return"><dt>Returns</dt><dd>0 on success. </dd>
<dd>
-1 on error&gt; </dd></dl>

<p>Definition at line <a class="el" href="time_8c_source.html#l00901">901</a> of file <a class="el" href="time_8c_source.html">time.c</a>.</p>

</div>
</div>
<a class="anchor" id="af39c674506657f4a32793388117be705"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int setdate_r </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>buf</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set date and time from string in this format "YYYY MM DD HH:MM:SS". </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">buf</td><td>Date string in this format "YYYY MM DD HH:MM:SS".</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 on success. </dd>
<dd>
(-1) on error. </dd></dl>

<p>Definition at line <a class="el" href="time_8c_source.html#l00919">919</a> of file <a class="el" href="time_8c_source.html">time.c</a>.</p>

<p>Referenced by <a class="el" href="time_8c_source.html#l00901">setdate()</a>, and <a class="el" href="user__main_8c_source.html#l00631">user_tests()</a>.</p>

</div>
</div>
<a class="anchor" id="aeb8aa93cda8bc413e67e8633793edf7e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int settimeofday </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="time_8h.html#a23f99094ae0798225e20ad40e48658bb">tv_t</a> *&#160;</td>
          <td class="paramname"><em>tv</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="time_8h.html#a63629b2492d6773f4d4948d6e60022a8">tz_t</a> *&#160;</td>
          <td class="paramname"><em>tz</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set current time struct timeval *tv and struct timezone *tz - POSIX function. We assume a GMT hardware clock. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">tv</td><td>time. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">tz</td><td>timezone.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 </dd></dl>

<p>Definition at line <a class="el" href="time_8c_source.html#l00861">861</a> of file <a class="el" href="time_8c_source.html">time.c</a>.</p>

<p>Referenced by <a class="el" href="user__main_8c_source.html#l00176">ntp_setup()</a>.</p>

</div>
</div>
<a class="anchor" id="aba9a1e17f18817099c795d0559d747a8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int settimezone </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="time_8h.html#a63629b2492d6773f4d4948d6e60022a8">tz_t</a> *&#160;</td>
          <td class="paramname"><em>tz</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set current timezone with struct timezone *tz - POSIX function. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">tz</td><td>timezone result.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0. </dd></dl>

<p>Definition at line <a class="el" href="time_8c_source.html#l00806">806</a> of file <a class="el" href="time_8c_source.html">time.c</a>.</p>

<p>Referenced by <a class="el" href="time_8c_source.html#l01178">initialize_clock()</a>, and <a class="el" href="time_8c_source.html#l00861">settimeofday()</a>.</p>

</div>
</div>
<a class="anchor" id="a32b1cbd925752f0cd61d202bbe204a69"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="time_8h.html#a3346b04b0420b32ccf6b706551b70762">time_t</a> time </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="time_8h.html#a3346b04b0420b32ccf6b706551b70762">time_t</a> *&#160;</td>
          <td class="paramname"><em>t</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Return second from epoch - POSIX function. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in,out]</td><td class="paramname">t</td><td>pointer to store time in.<ul>
<li>Notes: If t is non-NULL, store the return value there also. </li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>time_t seconds from epoch. </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="timer_8c.html#aa6e5b6a9c1fb8bc6e2093fca40600bf5" title="Generic clock_gettime() function WITHOUT high resolution. ">clock_gettime()</a>. </dd></dl>

<p>Definition at line <a class="el" href="time_8c_source.html#l00843">843</a> of file <a class="el" href="time_8c_source.html">time.c</a>.</p>

<p>Referenced by <a class="el" href="cordic2c_8c_source.html#l00128">get_date()</a>, <a class="el" href="fatfs__sup_8c_source.html#l00130">get_fattime()</a>, <a class="el" href="user__main_8c_source.html#l00971">setup()</a>, <a class="el" href="user__main_8c_source.html#l00348">user_loop()</a>, <a class="el" href="user__main_8c_source.html#l00631">user_tests()</a>, and <a class="el" href="posix_8c_source.html#l01407">utime()</a>.</p>

</div>
</div>
<a class="anchor" id="a09b5af92607205b927df4dcc1f2baa53"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="time_8h.html#a3346b04b0420b32ccf6b706551b70762">time_t</a> time_to_tm </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="time_8h.html#a3346b04b0420b32ccf6b706551b70762">time_t</a>&#160;</td>
          <td class="paramname"><em>epoch</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="earth2wireframe_8c.html#a32f2e37ee053cf2ce8ca28d1f74630e5">int32_t</a>&#160;</td>
          <td class="paramname"><em>offset</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="time_8h.html#a2fea857c30e2c901566fcf45fac68ac5">tm_t</a> *&#160;</td>
          <td class="paramname"><em>t</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Converts epoch ( seconds from 1 Jan EPOCH_YEAR UTC), offset seconds, to UNIX tm *t. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">epoch</td><td>Seconds elapsed since January 1, EPOCH_YEAR.<ul>
<li>unsigned long, range limited to: 0 .. 0xFFFD5D00&gt;</li>
<li>The range 0xFFFEAE80 .. 0xFFFFFFFF is reserverd for Dec 31, 1969.</li>
<li>The range 0xFFFD5D00 .. 0xFFFEAE7F is reserverd of offset overflow. </li>
</ul>
</td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">offset</td><td>Offset in seconds to localtime.<ul>
<li>long int, range limited to +/- 86400.</li>
<li>(Number of seconds that we add to UTC to get local time). </li>
</ul>
</td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">t</td><td>Unix tm struct pointer output. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>epoch: time in seconds, *t has result. </dd>
<dd>
-1: error.</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="time_8c.html#acf34275ac6fb2f724205873402dc9f70" title="GMT version of POSIX ctime(). ">ctime_gm()</a> </dd>
<dd>
<a class="el" href="time_8c.html#af391cf18b3fab0e588c6c3f354b7ca18" title="Convert epoch GMT time_t *tp into POSIX tm_t *result. ">gmtime_r()</a> </dd>
<dd>
<a class="el" href="time_8c.html#af05576742e2f8ad3924c02a6af70a86d" title="Convert POSIX epoch time_t *tp into POSIX tm_t *result expressed as local time using timezone and DST...">localtime_r()</a> </dd></dl>

<p>Definition at line <a class="el" href="time_8c_source.html#l00262">262</a> of file <a class="el" href="time_8c_source.html">time.c</a>.</p>

<p>Referenced by <a class="el" href="time_8c_source.html#l01038">find_dst()</a>, <a class="el" href="time_8c_source.html#l00456">gmtime_r()</a>, <a class="el" href="time_8c_source.html#l00499">localtime_r()</a>, and <a class="el" href="time_8c_source.html#l00654">normalize()</a>.</p>

</div>
</div>
<a class="anchor" id="a8386ff819a39512ea00cfc78ce5a27d5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="time_8h.html#a3346b04b0420b32ccf6b706551b70762">time_t</a> timegm </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="time_8h.html#a2fea857c30e2c901566fcf45fac68ac5">tm_t</a> *&#160;</td>
          <td class="paramname"><em>t</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Convert tm_t structure as GMT time into GMT seconds since 1900. All calculactions are in GMT regardless of timezoe settings. </p>
<ul>
<li>Standards: GNU and BSD.</li>
<li>Limits: year(1900..2199).</li>
<li>Assume: epoch size is time_t;</li>
</ul>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="time_8c.html#aeafbe7f942ef85f85edbbe31e439372b" title="convert tm_t structure to time_t local time epoch ">mktime()</a> <a class="el" href="posix_8h.html#a1c3d85ae80df5590fa314acffd8bf840">POSIX</a> function. </dd>
<dd>
<a class="el" href="time_8c.html#a8386ff819a39512ea00cfc78ce5a27d5" title="Convert tm_t structure as GMT time into GMT seconds since 1900. All calculactions are in GMT regardle...">timegm()</a> <a class="el" href="posix_8h.html#a1c3d85ae80df5590fa314acffd8bf840">POSIX</a> function. </dd>
<dd>
<a class="el" href="time_8c.html#a3b1394c042dadbb7086e4facb6c87186" title="Normalize POSIX tm_t *t struct and convert to epoch time Note: does not deal with DST - by design...">normalize()</a> and <a class="el" href="time_8c.html#ab5470ed361255861f6db7f5154587ea0" title="Converts tm_t structure as GMT time into GMT epoch since 1900. ">tm2epoch</a> non <a class="el" href="posix_8h.html#a1c3d85ae80df5590fa314acffd8bf840">POSIX</a> functions </dd></dl>
<dl class="section return"><dt>Returns</dt><dd>Seconds since EPOCH_YEAR Jan 1st. </dd>
<dd>
-1 on error. </dd></dl>

<p>Definition at line <a class="el" href="time_8c_source.html#l00347">347</a> of file <a class="el" href="time_8c_source.html">time.c</a>.</p>

<p>Referenced by <a class="el" href="time_8c_source.html#l01227">display_clock()</a>, <a class="el" href="posix_8c_source.html#l02227">fat_time_to_unix()</a>, <a class="el" href="time_8c_source.html#l01038">find_dst()</a>, <a class="el" href="time_8c_source.html#l01178">initialize_clock()</a>, and <a class="el" href="time_8c_source.html#l00919">setdate_r()</a>.</p>

</div>
</div>
<a class="anchor" id="ab5470ed361255861f6db7f5154587ea0"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="time_8h.html#a3346b04b0420b32ccf6b706551b70762">time_t</a> tm2epoch </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="time_8h.html#a2fea857c30e2c901566fcf45fac68ac5">tm_t</a> *&#160;</td>
          <td class="paramname"><em>t</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Converts tm_t structure as GMT time into GMT epoch since 1900. </p>
<ul>
<li>used internally by <a class="el" href="time_8c.html#a3b1394c042dadbb7086e4facb6c87186" title="Normalize POSIX tm_t *t struct and convert to epoch time Note: does not deal with DST - by design...">normalize()</a> function after normalization</li>
<li>DO NOT use in user code , use normaize or any function that uses it</li>
<li>Standards: none</li>
<li>Limits: year(1900..2199).</li>
<li>Assume: epoch size is time_t;</li>
</ul>
<dl class="section return"><dt>Returns</dt><dd>Seconds since GMT EPOCH_YEAR Jan 1st. </dd>
<dd>
-1 on error. </dd></dl>
<p>Note: To simplify we caculate Leap Day contributions in stages </p>

<p>Definition at line <a class="el" href="time_8c_source.html#l00552">552</a> of file <a class="el" href="time_8c_source.html">time.c</a>.</p>

<p>Referenced by <a class="el" href="time_8c_source.html#l00654">normalize()</a>.</p>

</div>
</div>
<a class="anchor" id="a0dd83b6492eb8473cb55bb45d8fc6c0c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> char* tm_mon_to_ascii </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get string Short name of Month from month number. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">i</td><td>Month 0 .. 11 to string.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>string pointer to month. </dd>
<dd>
"BAD" on error. </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="time_8c.html#a7ffc52def0c7fbf70c50248e3f7d6a8a" title="Convert tm_t *t structure into POSIX asctime() ASCII string *buf. ">asctime_r()</a> </dd></dl>

<p>Definition at line <a class="el" href="time_8c_source.html#l00114">114</a> of file <a class="el" href="time_8c_source.html">time.c</a>.</p>

</div>
</div>
<a class="anchor" id="ac7a571349cf5217b6261a01bf85a79ab"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> char* tm_wday_to_ascii </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get string Short name of day from day number. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">i</td><td>Day 0 .. 6.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>string pointer to day. </dd>
<dd>
"BAD" on error. </dd></dl>

<p>Definition at line <a class="el" href="time_8c_source.html#l00087">87</a> of file <a class="el" href="time_8c_source.html">time.c</a>.</p>

</div>
</div>
<h2 class="groupheader">Variable Documentation</h2>
<a class="anchor" id="a335451dd774ecb4b696d501b4c1b6f30"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">volatile <a class="el" href="time_8h.html#a062a82a85c72b4a3020130efc37a00cf">ts_t</a> __clock</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>System Clock Time. </p>

<p>Definition at line <a class="el" href="timer_8c_source.html#l00038">38</a> of file <a class="el" href="timer_8c_source.html">timer.c</a>.</p>

</div>
</div>
<a class="anchor" id="a51f8059d5a58b35f401245c1f2cabc2d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="send_8c.html#a273cf69d639a59973b6019625df33e30">uint16_t</a> __days[]</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<b>Initial value:</b><div class="fragment"><div class="line">=</div><div class="line">{</div><div class="line">    31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31</div><div class="line">}</div></div><!-- fragment -->
<p>days in each month. </p>
<ul>
<li>without leap days.</li>
<li>Index: Month 00 .. 11. <dl class="section see"><dt>See also</dt><dd><a class="el" href="time_8c.html#a8386ff819a39512ea00cfc78ce5a27d5" title="Convert tm_t structure as GMT time into GMT seconds since 1900. All calculactions are in GMT regardle...">timegm()</a>. </dd></dl>
</li>
</ul>

<p>Definition at line <a class="el" href="time_8c_source.html#l00068">68</a> of file <a class="el" href="time_8c_source.html">time.c</a>.</p>

<p>Referenced by <a class="el" href="time_8c_source.html#l00223">Days_Per_Month()</a>, and <a class="el" href="time_8c_source.html#l00262">time_to_tm()</a>.</p>

</div>
</div>
<a class="anchor" id="acab85c85e1497507b279edab985ac1e5"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="send_8c.html#a273cf69d639a59973b6019625df33e30">uint16_t</a> __days_sum[]</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<b>Initial value:</b><div class="fragment"><div class="line">=</div><div class="line">{</div><div class="line">    0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365</div><div class="line">}</div></div><!-- fragment -->
<p>accumulated days to the start of a month in a year. </p>
<ul>
<li>without Leap days.</li>
<li>Index: Month 00 .. 11 (12 is a year). <dl class="section see"><dt>See also</dt><dd><a class="el" href="time_8c.html#a8386ff819a39512ea00cfc78ce5a27d5" title="Convert tm_t structure as GMT time into GMT seconds since 1900. All calculactions are in GMT regardle...">timegm()</a>. </dd></dl>
</li>
</ul>

<p>Definition at line <a class="el" href="time_8c_source.html#l00059">59</a> of file <a class="el" href="time_8c_source.html">time.c</a>.</p>

<p>Referenced by <a class="el" href="time_8c_source.html#l00552">tm2epoch()</a>.</p>

</div>
</div>
<a class="anchor" id="a1059a668b2b28621f4bce70f603555fa"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char* __Month[]</td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Initial value:</b><div class="fragment"><div class="line">= </div><div class="line">{ </div><div class="line">    <span class="stringliteral">&quot;Jan&quot;</span>,<span class="stringliteral">&quot;Feb&quot;</span>,<span class="stringliteral">&quot;Mar&quot;</span>,<span class="stringliteral">&quot;Apr&quot;</span>,<span class="stringliteral">&quot;May&quot;</span>,<span class="stringliteral">&quot;Jun&quot;</span>,<span class="stringliteral">&quot;Jul&quot;</span>, </div><div class="line">        <span class="stringliteral">&quot;Aug&quot;</span>,<span class="stringliteral">&quot;Sep&quot;</span>,<span class="stringliteral">&quot;Oct&quot;</span>,<span class="stringliteral">&quot;Nov&quot;</span>,<span class="stringliteral">&quot;Dec&quot;</span>,<span class="stringliteral">&quot;BAD&quot;</span></div><div class="line">}</div></div><!-- fragment -->
<p>Short Name or each Month in a year. </p>
<ul>
<li>Month 0 .. 11 to string. </li>
</ul>

<p>Definition at line <a class="el" href="time_8c_source.html#l00100">100</a> of file <a class="el" href="time_8c_source.html">time.c</a>.</p>

<p>Referenced by <a class="el" href="time_8c_source.html#l00367">asctime_r()</a>, and <a class="el" href="time_8c_source.html#l00114">tm_mon_to_ascii()</a>.</p>

</div>
</div>
<a class="anchor" id="a9ac29ed71adf6807175d24ab1fa622a7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="time_8h.html#a63629b2492d6773f4d4948d6e60022a8">tz_t</a> __tzone</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>System Time Zone. </p>

<p>Definition at line <a class="el" href="time_8c_source.html#l00049">49</a> of file <a class="el" href="time_8c_source.html">time.c</a>.</p>

</div>
</div>
<a class="anchor" id="a6403bf32bcba7c1ca0fe395d8b30e542"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char* __WDay[] = { &quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;,&quot;BAD&quot;}</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Short Name of each Day in a week. </p>
<ul>
<li>Day 0 .. 6 to string.</li>
</ul>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="time_8c.html#a7ffc52def0c7fbf70c50248e3f7d6a8a" title="Convert tm_t *t structure into POSIX asctime() ASCII string *buf. ">asctime_r()</a> </dd></dl>

<p>Definition at line <a class="el" href="time_8c_source.html#l00078">78</a> of file <a class="el" href="time_8c_source.html">time.c</a>.</p>

<p>Referenced by <a class="el" href="time_8c_source.html#l00367">asctime_r()</a>, and <a class="el" href="time_8c_source.html#l00087">tm_wday_to_ascii()</a>.</p>

</div>
</div>
<a class="anchor" id="a5a388b2bb2a2a9914c7d68ed3d09f7e9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structdst__t.html">dst_t</a> dst</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>DST start and stop in GMT epoch. </p>

<p>Definition at line <a class="el" href="time_8c_source.html#l00052">52</a> of file <a class="el" href="time_8c_source.html">time.c</a>.</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Jan 31 2018 21:22:16 for ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
